package com.qiangesoft.easyexcel.read;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.qiangesoft.easyexcel.common.ExcelStringConverter;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 读取读取类
 *
 * @author qiangesoft
 * @date 2024-04-10
 */
@Getter
@Setter
@EqualsAndHashCode
public class ReadData {

    @ExcelProperty(index = 0, converter = ExcelStringConverter.class)
    private String string;

    @DateTimeFormat("yyyy年MM月dd日 HH时mm分ss秒")
    @ExcelProperty(index = 1)
    private Date date;

    @NumberFormat("#.##%")
    @ExcelProperty(value = "数字")
    private Double doubleData;
}
